/*
 * @Description: 描述信息
 * @Version: 版本号
 * @Author: xuebao
 * @Date: 2023-12-12 17:29:35
 * @LastEditors: xuebao
 * @LastEditTime: 2023-12-14 11:44:58
 */
import { MutableRefObject } from 'react'
import { User } from './api'
export type IAction = 'create' | 'edit' | 'delete'


export interface IModalProp<T = User.UserItem> {
  mRef: MutableRefObject<{
    open: (type: IAction, data: T) => void
  } | undefined>,
  update: () => void,
}


export interface IDetailProp {
  mRef: MutableRefObject<{
    open: (orderId: string) => void
  } | undefined>
}
